Text Box



This is another version of the infamous scroll. Although, this one scrolls your information in a text box and is far less 'annoying' that most of the status bar scrollers. Just imagine what you can draw attention to! Anything!

--------------------------------------------------------------------------------
 

<!-- TWO STEPS TO INSTALL TEXT BOX:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var display_text  = "Here is the common scroll  -  except, "
+ " this one runs in a text box rather than the status bar. "
+ " There is more cool stuff like this on TJS !!  "
var display_text;
var place;
var meter; 
var out = " ";
var place = 50;
function scroll_text() {
for (meter = 0; meter < place; meter++) {
out += " "}
if (place >= 0)
out += display_text
else out = display_text.substring(-place,display_text.length)
document.scroll_form.field.value = out
out = " "
place--
if (place < -(display_text.length)) {
place = 50
}
setTimeout('scroll_text()',100)
}
// End -->
</SCRIPT>

<!-- STEP TWO: Put this code into the BODY of your HTML document  -->

<BODY>

<CENTER>
<FORM NAME="scroll_form">
<input type="button" name="button_one" value="Start" onClick="scroll_text()">
<input type="text" name="field" size="50">
</FORM>
</CENTER>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.30 KB  -->
